package cn.jinbyte.starter.captcha.enums;

import com.wf.captcha.*;
import com.wf.captcha.base.Captcha;
import lombok.Getter;

/**
 * 验证码类型枚举
 */
public enum EasyCaptchaType {

    /**
     * 算术
     */
    ARITHMETIC(ArithmeticCaptcha.class),

    /**
     * 中文
     */
    CHINESE(ChineseCaptcha.class),

    /**
     * 中文GIF
     */
    CHINESE_GIF(ChineseGifCaptcha.class),

    /**
     * GIF
     */
    GIF(GifCaptcha.class),

    /**
     * 特殊
     */
    SPEC(SpecCaptcha.class),
    ;

    @Getter
    private final Class<? extends Captcha> clazz;

    EasyCaptchaType(Class<? extends Captcha> clazz) {
        this.clazz = clazz;
    }

}
